package com.haoyun.mirage.auth.security;

import org.springframework.security.core.userdetails.UserDetails;

/**
 * Created by twg on 2018/6/19.
 */
public interface CustomerUserDetails extends UserDetails {

    /**
     * 用户ID
     *
     * @return
     */
    Long getId();

    /**
     * 用户公司ID
     *
     * @return
     */
    Long getCompId();

    /**
     * 用户真实姓名
     *
     * @return
     */
    String getRealName();

    /**
     * 用户级别
     *
     * @return
     */
    Integer getUserLevel();

    /**
     * 盐值
     * @return
     */
    String getSalt();
}
